package com.example.chatroom.model;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FriendReqMapper {
    List<FriendReq> getSearchList(String username, String myName);

    List<FriendReq> getInitiator(int userId);

    List<FriendReq> getReceiver(int userId);

    List<Integer> searchFriend(int initiator);

    int getUserIdByName(String username);

    void addFriend(int userId, int friendId);

    void addFriendReq(FriendReq req);

    void delete(int initiator, int receiver);
}
